package com.it.archives.dao.mapper;

import com.it.archives.dao.provider.UserProvider;
import com.it.archives.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;

@Mapper
public interface UserMapper {

    @Select("select * from user")
    List<User> queryList(User user);

    @SelectProvider(type = UserProvider.class, method = "queryUserListByParam")
    List<User> queryUserListByParam(User user);
}
